#define _CRT_SECURE_NO_WARNINGS 1
//2023.2.21
#include<stdio.h>
int main()
{
	int a, b, c, d, e;
	for(a = 1; a <= 5; a++)
		for (b = 1; b <= 5; b++)
			for (c = 1; c <= 5; c++)
				for (d = 1; d <= 5; d++)
					for (e = 1; e <= 5; e++)
					{
						if (b == 2 || a == 3)
						{
							if (b == 2 || e == 4)
								if (c == 1 || d == 2)
									if (c == 5 || d == 3)
										if (e == 4 || a == 1)
											if ((a * b * c * d * e) == (1 * 2 * 3 * 4 * 5))
												goto end;
						}
						else
							continue;
					}
	end:
	printf("a==%d b==%d c==%d d==%d e==%d", a, b, c, d, e);
	return 0;
}